[XEND] Move decorate() to XendAPI.__new__ and have a static flag to
authorAlastair Tse <atse@xensource.com>
Wed, 24 Jan 2007 15:57:10 +0000 (15:57 +0000)
committerAlastair Tse <atse@xensource.com>
Wed, 24 Jan 2007 15:57:10 +0000 (15:57 +0000)
commit7d65668740aaa122efaca4a3d0754c62c5e60437
treef050b38acaa8a950f54f18ffb2f57565c205121b
parent2478f46117a96ad0e52d738d611fa3f834ca0563
[XEND] Move decorate() to XendAPI.__new__ and have a static flag to
ensure it only runs at instantiation time, and only once per Xend
instance. Otherwise, decorate() runs on every invocation of
/usr/sbin/xend, even if it is xend stop.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendAPI.py